package tw.zld369504.wol.utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * sqlite helper
 */
public class DBHelper extends SQLiteOpenHelper {

    private String sql = "create table if not exists wol (id INTEGER primary key autoincrement," +
            "profileName text,ip text,port varchar(5),mac varchar(17))";

    public DBHelper(Context context, String name) {
        super(context, name, null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
